-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Format SQL in watcher #706
Conversation
It's a little unclear to me what the "format_sql" configuration option does. I think it will also be unclear to end users. |
So how would you call it? Or would you do it as default? |
It's replacing the |
Why make it a configuration option at all? Why would someone want to disable it? |
Not sure, because it wasn't done before I thought maybe that was on purpose. |
I've removed the option, just always do it now. |
Fixed+added a test. |
This formats the SQL in PHP (instead of Javascript) so that they can be shown in the preview window (imho that makes it a lot more clear when looking at them, but might be preference, hence the config options).
It stores the familyHash to be able to check for duplicates (which isn't implemented anywhere yet, but would perhaps be useful).
The view of the Javascript should be the same, with/without pre-formatted SQL.